package com.dongwei.looker;

/**
 * Created by user on 2017/9/12.
 */
public class Client {
    public static void main(String[] args) {

//    1创建目表
        Mubiao weather=new Mubiao();

//    2创建观察者
        Guancha girl=new Guancha();
        girl.setSubjectName("黄明");
        girl.setReadoming("捷信公园见");
        Guancha mum=new Guancha();
        mum.setSubjectName("老妈");
        mum.setReadoming("可以去购物le ");
//        3注册观察者
        weather.attend(girl);
        weather.attend(mum);
//        4目镖发布天气
        weather.setWeatherContent("天气晴朗");
    }
}
